package net.lzzy.arraylist2;

public class Student {
    private String name;
    private String classname;
    private double score;

    public Student() {
    }

    public Student(String name, String classname, double score) {
        this.name = name;
        this.classname = classname;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "姓名: "+name+" 班级: "+classname+" 分数: "+score;
    }
}
